From fb51bbc5658205c8522c65bef6d30422c22a7402 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 10 Mar 2014 13:39:55 -0400 Subject: [PATCH] wayland: Clean up a bit --- gdk/wayland/gdkwindow-wayland.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index a19261a8b0..1176fd50b6 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -1134,7 +1134,6 @@ static void gdk_wayland_window_map (GdkWindow *window) { GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl); - GdkWindowImplWayland *parent; GdkWindow *transient_for; if (!impl->mapped && !impl->use_custom_surface) @@ -1162,15 +1161,13 @@ gdk_wayland_window_map (GdkWindow *window) struct wl_seat *grab_input_seat = NULL; GdkWindowImplWayland *tmp_impl; - parent = GDK_WINDOW_IMPL_WAYLAND (transient_for->impl); - /* Use the device that was used for the grab as the device for * the popup window setup - so this relies on GTK+ taking the * grab before showing the popup window. */ grab_input_seat = impl->grab_input_seat; - tmp_impl = parent; + tmp_impl = GDK_WINDOW_IMPL_WAYLAND (transient_for->impl); while (!grab_input_seat) { grab_input_seat = tmp_impl->grab_input_seat; -- 2.30.2